package com.feng.eduorder.client;

import com.feng.commonutils.R;
import com.feng.commonutils.vo.CourseVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

@Component
@FeignClient(name="service-edu")
public interface EduClient {
    @GetMapping("/eduservice/edu-course/getCourseInfos/{courseId}")
    public CourseVo getCourseInfos(@PathVariable String courseId);
    @PostMapping("/eduservice/edu-course/updateCourseCount/{courseId}")
    public R updateCourseCount(@PathVariable String courseId);
}
